package mapper;


import entity.Roleurl;
import entity.User;
import entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> indexselect();

    User login(String username, String password);

    List<UserRole> listroleid();
    List<Roleurl> urllist();

    Roleurl urlpid(String url);

    User registerfind(String username);
}
